div.tabs {
margin:0 0 5px;
}

ul.primary {
list-style:none;
white-space:nowrap;
line-height:normal;
background:url(images/tab-bar.png) repeat-x left bottom;
border-width:0;
margin:0;
padding:0 0 0 10px;
}

ul.primary li {
float:left;
margin:0;
padding:0;
}

ul.primary li a {
display:block;
height:24px;
font-weight:700;
text-decoration:none;
color:#777;
background-color:transparent;
background:url(images/tab-left.png) no-repeat left -38px;
border-width:0;
margin:0;
padding:0 0 0 5px;
}

ul.primary li a .tab {
display:block;
height:20px;
line-height:20px;
background:url(images/tab-right.png) no-repeat right -38px;
border-width:0;
margin:0;
padding:4px 13px 0 6px;
}

ul.primary li a:hover {
background-color:transparent;
background:url(images/tab-left.png) no-repeat left -76px;
border-width:0;
}

ul.primary li a:hover .tab {
background:url(images/tab-right.png) no-repeat right -76px;
}

ul.primary li.active a,ul.primary li.active a:hover {
color:#000;
background-color:transparent;
background:url(images/tab-left.png) no-repeat left 0;
border-width:0;
}

ul.primary li.active a .tab,ul.primary li.active a:hover .tab {
background:url(images/tab-right.png) no-repeat right 0;
}

ul.secondary {
border-bottom:1px solid silver;
list-style:none;
white-space:nowrap;
background:url(images/tab-secondary-bg.png) repeat-x left bottom;
margin:0;
padding:0 0 0 5px;
}

ul.secondary li {
float:left;
border-right:none;
margin:0 5px 0 0;
padding:5px 0;
}

ul.secondary a {
display:block;
height:24px;
border:1px solid silver;
text-decoration:none;
color:#777;
background:url(images/tab-secondary.png) repeat-x left -56px;
margin:0;
padding:0;
}

ul.secondary a .tab {
display:block;
height:18px;
line-height:18px;
margin:0;
padding:3px 8px;
}

ul.secondary a:hover {
background:url(images/tab-secondary.png) repeat-x left bottom;
}

ul.secondary a.active,ul.secondary a.active:hover {
border:1px solid silver;
color:#000;
background:url(images/tab-secondary.png) repeat-x left top;
}
